#pragma once

#include "sndfile.h"

class SoundFile
{
public:

	enum Format {
		WAVE,
		OGG,
		OTHER,
	};

	SoundFile();
	~SoundFile();

	int Open(const char* path);

	int Close();

	long long Read(short* buffer, long long size);

	int GetSampleRate();

	int GetChannels();

	int GetSections();

	long long GetFrames();

	Format GetFormat();

private:

	SNDFILE* m_pSndFile;

	SF_INFO m_SndInfo;

};

